﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HDTuyenChon.BL
{
	public static class Utilities
	{
		/// <summary>
		/// Kiem tra mot chuoi la kieu so
		/// </summary>
		/// <param name="num"></param>
		/// <returns></returns>
		public static bool IsNumber(string num)
		{
			if (num.Equals(""))
			{
				return false;
			}

			bool isNum = true;
			for (int i = 0; i < num.Length; i++)
			{
				if (!char.IsDigit(num[i]))
				{
					isNum = false;
					break;
				}
			}
			return isNum;
		}
	}
}